#ifndef _MSN_SB_H
#define _MSN_SB_H
#include "msn.h"

typedef enum {
	MSN_SB_TYPE_NONE,
	MSN_SB_TYPE_XFR,
	MSN_SB_TYPE_RNG,
}MSN_SB_TYPE;

typedef struct {
	event_t *ev;
	GString *session_id;
	GString *ticket;
	GString *in;
	msn_session_t *ms;
	int fd;
	int port;
	int tr_id;
	struct in_addr addr;
	MSN_SB_TYPE type;
	msn_user_t *creator;
}msn_sb_session_t;

extern void msn_rng_handle(const char *line, const int size, msn_session_t *robot);
extern msn_sb_session_t *msn_sb_session_new(msn_session_t *ms, msn_user_t *creator);
extern msn_sb_session_t *msn_sb_session_init(const char *line, const int size, msn_sb_session_t *s);
extern msn_sb_session_clean(msn_sb_session_t *sess);

#endif
